package com.zstu.lvxiang.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 记录表
 * </p>
 *
 * @author Trafalgar
 * @since 2022-03-16
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
public class Records implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学生学号
     */
    private String stuId;

    /**
     * 某项安排的id
     */
    private Integer categoryId;

    /**
     * 学习时长
     */
    private Float time;

    /**
     * 日期
     */
    private String date;

    public Records(String stuId, Integer categoryId, Float time, String date) {
        this.stuId = stuId;
        this.categoryId = categoryId;
        this.time = time;
        this.date = date;
    }
}
